package com.jay.lang.management.intf;

import java.lang.management.ManagementFactory;
import java.lang.management.PlatformLoggingMXBean;
import java.util.List;

public class PlatformLoggingMXBeanIntf {
	public static void main(String[] args) {
		PlatformLoggingMXBean mxbean = ManagementFactory
				.getPlatformMXBean(PlatformLoggingMXBean.class);

		System.out.println(mxbean.toString());
		System.out.println(mxbean.getClass());
		System.out.println(mxbean.getObjectName());

		List<String> names = mxbean.getLoggerNames();
		for (String name : names) {
			System.out.println(mxbean.getLoggerLevel(name));
			System.out.println(mxbean.getParentLoggerName(name));
		}
	}
}
